/*
 * @Author: 贺楚 2402041262@qq.com
 * @Date: 2023-01-11 17:35:48
 * @LastEditors: 贺楚 2402041262@qq.com
 * @LastEditTime: 2023-01-14 10:38:51
 * @FilePath: \vue-admin-template-master\src\store\getters.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  userRole: state => state.user.userRole,
  permissionList: state => state.user.permissionList
}
export default getters
